<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core">

<f:view contentType="text/html" id="fview">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Page template with PrimeFaces</title>
    <ui:debug />
    <f:metadata>
        <ui:insert name="metadata" />
    </f:metadata>

    <h:head>
        
    </h:head>

    <h:body onload="statusDialog.hide();">
    	<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();" />

    	<p:layout fullPage="true" resizeTitle="resize" style="background-color:#FFFFFF;">
        
        <p:layoutUnit position="north" id="north" >
            <h1>NetBuilder-Web:		Worlds #1 networking application</h1>
        </p:layoutUnit>

        <p:layoutUnit position="west" id="west" resizable="false" header="#{msg['menu.title']}" style="height:580px;overflow:hidden;" size="225">
            <ui:include src="menu.xhtml" />
        </p:layoutUnit>

        <p:layoutUnit styleClass="layoutUnitCenter" position="center">
            <h:form id="mainForm">
                <p:messages autoUpdate="true" id="msgs" showDetail="true" showSummary="true" />
                <ui:insert name="content" />
            </h:form>
        </p:layoutUnit>

        <p:layoutUnit position="east" size="0" style="width:0px; display:none;" id="east">
        </p:layoutUnit>

        <p:layoutUnit position="south" resizable="true" id="south">
            <h3>InfoTeh NetCracker</h3>
        </p:layoutUnit>
    </p:layout>

    <p:dialog modal="true" widgetVar="statusDialog" showHeader="false" draggable="false" closable="false" resizable="false" visible="false" position="center" maximizable="false" minimizable="false" >
        <p:graphicImage value="#{resource['images/ajax-loader.gif']}" />
    </p:dialog>
    </h:body>

</f:view>
</html>